export default defineI18nConfig(() => ({
  legacy: false,
  locale: 'en',
  fallbackLocale: 'en',
  messages: {
    zh: {
      login: {
        systemName: 'IMBoy 管理系统',
        account: '账号',
        accountPlaceholder: '请输入账号',
        accountRequired: '请输入账号',
        accountRule: '用户名必须2到40位字母、数字、汉字组合',
        password: '密码',
        passwordPlaceholder: '请输入密码',
        passwordRequired: '请输入密码',
        passwordRule: '8到40个任意字符',
        captcha: '验证码',
        captchaPlaceholder: '请输入验证码',
        captchaRequired: '请输入验证码',
        captchaRule: '验证码长度为 5 个字符',
        refreshCaptcha: '点击刷新验证码',
        loginButton: '立即登录',
        loggingIn: '登录中...',
        loginSuccess: '登录成功',
        loginFailed: '登录失败'
      }
    },
    en: {
      login: {
        systemName: 'IMBoy Admin System',
        account: 'Account',
        accountPlaceholder: 'Please enter your account',
        accountRequired: 'Please enter your account',
        accountRule: 'Username must be 2-40 characters (letters, numbers, Chinese characters)',
        password: 'Password',
        passwordPlaceholder: 'Please enter your password',
        passwordRequired: 'Please enter your password',
        passwordRule: '8-40 characters',
        captcha: 'Captcha',
        captchaPlaceholder: 'Please enter captcha',
        captchaRequired: 'Please enter captcha',
        captchaRule: 'Captcha must be 5 characters',
        refreshCaptcha: 'Click to refresh captcha',
        loginButton: 'Login Now',
        loggingIn: 'Logging in...',
        loginSuccess: 'Login successful',
        loginFailed: 'Login failed'
      }
    }
  }
}))